typedef OtaStart = void Function();
typedef OtaCanceled = void Function();
typedef OtaStop = void Function();
typedef OtaError = void Function(int code,String msg);
typedef OtaProgress = void Function(int type,double progress);
class BleOtaCallback{
  OtaStart? otaStart;
  OtaCanceled? otaCanceled;
  OtaStop? otaStop;
  OtaError? otaError;
  OtaProgress? otaProgress;

  BleOtaCallback({this.otaStart, this.otaCanceled, this.otaStop, this.otaError, this.otaProgress});
}